using NUnit.Framework;
using Rhino.Mocks;
using TestAssemblyInterfaces;

namespace LoggingMagic.Tests.Integration.StaticMethodTests
{
    [TestFixture]
    public class ClassWithCtorTests
    {
        private ILog _logger;

        [SetUp]
        public void Setup()
        {
            _logger = MockRepository.GenerateStrictMock<ILog>();
            Initializer.SetLogger(_logger);
        }

        [Test]
        public void CtorLogged()
        {
            _logger.Expect(x => x.Log("ClassWithCtor..ctor", new object[] { }));

            Initializer.GetClassWithCtorInstance();

            _logger.VerifyAllExpectations();
        }
    }
}